home *** CD-ROM | disk | FTP | other *** search
/ The AGA Experience 3 / AGA Experience Volume 3 (1997)(NFA - SAdENESS)[!].iso / amiga / docs / _telnetscript < prev    next >
Text File  |  1996-09-06  |  1KB  |  33 lines

  1. ; Sample script to start a Telnet client. If a username was present
  2. ; on the telnet address, this script will pop up a requester showing
  3. ; the username and password to use.
  4. ;
  5. ; To use this script, configure AWeb to use for its Telnet: program:
  6. ;    command = (path)/_telnetscript
  7. ;  arguments = %l %w %h %p
  8. ;
  9. ; Make sure to change the path name for the telnet program below to the one
  10. ; you're actually using.
  11. ; =======================================================================
  12.  
  13. .key USERNAME,PASSWORD,HOST,PORT
  14.  
  15. ; If a USERNAME was given, open a requester. The requester is run in
  16. ; a different shell so that it remains open while the telnet program
  17. ; is started.
  18.  
  19. If NOT "<USERNAME>" EQ ""
  20.   Run >NIL: RequestChoice "Telnet login parameters" "Please log in at <HOST> as:*N*NUser: <USERNAME>*NPassword: <PASSWORD>" "Ok"
  21. EndIf
  22.  
  23. ; Start the telnet program.
  24. ;
  25. ; ***********************************************************************
  26. ; *** Change the path and command in the next line to the actual path
  27. ; *** and program name. Also make sure the arguments are right.
  28.  
  29. AmiTCP:Bin/telnet <HOST> <PORT>
  30.  
  31. ; ***********************************************************************
  32.  
  33.